home *** CD-ROM | disk | FTP | other *** search
- Path: fix.uni-trier.de!not-for-mail
- From: hfrieden@fix.uni-trier.de (Hans-Joerg Frieden)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: BOOPSI doesn't react on the GA_RelRight tag...
- Date: 17 Jan 1996 20:17:57 GMT
- Organization: Universitaet Trier
- Message-ID: <4djlhl$512@news01.uni-trier.de>
- References: <4dgc3k$us@hasle.sn.no> <4dioh7$itl@news01.uni-trier.de>
- NNTP-Posting-Host: fix.uni-trier.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- Content-Transfer-Encoding: 7bit
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Here's a code fragment I actually used in a program. It creates a gadget
- of propgclass, which is in the border of the window. The window isn't
- open at this time:
-
- prefs.Obj[GAD_XPOS] = NewObject(NULL, (STRPTR)"propgclass",
- GA_ID, GAD_XPOS,
- GA_Left, rw+gap,
- GA_RelVerify, TRUE,
- GA_Immediate, TRUE,
- GA_RelBottom, bh - gh + 2,
- GA_RelWidth, -gw - gap - IM(prefs.Obj[8])->Width
- - IM(prefs.Obj[7])->Width - rw - rw,
- GA_Height, gh - bh - bh - 2,
- GA_BottomBorder, TRUE,
- PGA_Total, 1,
- PGA_Visible, 1,
- ICA_TARGET, ICTARGET_IDCMP,
- PGA_Freedom, FREEHORIZ,
- PGA_NewLook, TRUE,
- PGA_Borderless, ((dri->dri_Flags & DRIF_NEWLOOK) &&
- dri->dri_Depth != 1),
- TAG_DONE);
- if (!prefs.Obj[GAD_XPOS]) return DisposeGadgets();
-
- Hope this helps...
-
- Regards, Hans-Joerg.
-
- --
- Hans-Joerg Frieden Schloss-Strasse 176 54293 Trier Germany
- Private Mail to hfrieden@fix.uni-trier.de
- FTP-Admin Mail to ftpadmin@ftp.uni-trier.de
- Any Opinion expressed is completely my own, not those of my employers.
-